# -*- coding: utf-8 -*-
# @Software :   PyCharm
# @File     :   urls.py
# @Author   :   zhaolie
# @Contact  :   zhaolie1989@gmail.com
# @Time     :   2019/11/19 2:25 下午
# @Desc     :   None      

# here put the import lib
from django.urls import path, include, re_path
from organization.views import OrgView, AddUserAskView, \
    OrgHomeView, OrgCourseView, OrgDescView, OrgTeacherView, AddfavView, TeacherListView, TeacherDetailView

urlpatterns = [

    # 课程机构首页
    path('list/', OrgView.as_view(), name="org_list"),
    path('add_ask/', AddUserAskView.as_view(), name="add_ask"),
    re_path('home/(?P<org_id>\d+)/$', OrgHomeView.as_view(), name="org_home"),
    re_path('course/(?P<org_id>\d+)/$', OrgCourseView.as_view(), name="org_course"),
    re_path('desc/(?P<org_id>\d+)/$', OrgDescView.as_view(), name="org_desc"),
    re_path('teacher/(?P<org_id>\d+)/$', OrgTeacherView.as_view(), name="org_teacher"),
    path('add_fav/', AddfavView.as_view(), name="add_fav"),
    path('teacher/list', TeacherListView.as_view(), name="teacher_list"),
    re_path('teacher/detail/(?P<teacher_id>\d+)/$', TeacherDetailView.as_view(), name="detail"),
]
